package com.zyl.blog.tasks.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * @version v1.0
 * @ProjectName: Personal_Blog_Server
 * @Package: com.zyl.blog.tasks.enums
 * @ClassName: TaskType
 * @Description:
 * @Author FinalFantasy
 * @Date 2025/8/12-09:56
 */
@Getter
public enum TaskType {
    CRON("CRON", "Cron表达式触发"),
    FIXED_DELAY("FIXED_DELAY", "固定延迟触发"),
    FIXED_RATE("FIXED_RATE", "固定速率触发");

    @EnumValue
    private final String code;
    private final String desc;

    TaskType(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}